package com.imu.purse.modules.trade.entity;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import com.imu.core.base.BaseEntity;
import com.imu.common.validator.group.UpdateGroup;


/**
 * IMU以太坊原生币转入表
 * 
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-07-09 19:42:44
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
@Data
@Table(name = "imu_ytf_trans_in")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class YtfTransInEntity extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	//主键ID
	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@NotNull(message="主键不存在无法更新", groups = {UpdateGroup.class})
	private Long id;
	
	//支付地址
	@Column(name="pay_addr")
	private String payAddr;
	
	//接受地址
	@Column(name="rec_addr")
	private String recAddr;
	
	//接受用户ID
	@Column(name="rec_user_id")
	private Long recUserId;
	
	//接受手机号码
	@Column(name="rec_phone")
	private String recPhone;
	
	//交易ID
	@Column(name="trans_id")
	private String transId;
	
	//创建时间
	@Column(name="create_time")
	private Long createTime;

	@Column(name = "money")
	private BigDecimal money;
	
}
